package org.malred.sqlSession;

import org.malred.pojo.Configuration;
import org.malred.pojo.MappedStatement;

import java.util.List;

public interface Executor {
    // 查找
    public <E> List<E> query(
            Configuration configuration, MappedStatement mappedStatement, Object... params);

    // 修改 插入 删除
    public int update(Configuration configuration, MappedStatement mappedStatement, Object... params);

    // 提交
    public  void commit();
}
